<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<% 
	String name = String.valueOf(session.getAttribute("session_name"));
	
	if(session.getAttribute("session_name") == null){
		String destination ="login.jsp";
		response.sendRedirect(response.encodeRedirectURL(destination));
	}
%>

<%
final String countryname = request.getParameter( "country" );
%>

<sql:transaction dataSource="jdbc/lut2">
	<sql:update var="count">
		DELETE FROM country WHERE full_name=?
		<sql:param><%= countryname %></sql:param>
	</sql:update>
</sql:transaction>

<html>
<head>
</head>
<body>
                Country removed <br>
                <a href="lutadmin.jsp">&larr; Go back</a>
</body>
</html>